Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/11 - Multi server support #31

Closed
wants to merge 5 commits into from

Conversation

Bidthedog
Copy link
Collaborator

This is a major refactor; the bot has now been updated to easily support multi-server monitoring.

More work is required around configuring and enabling / disabling actions on a per-server basis, but this will form part of the Twitch integration work I will be doing next.

This is pretty much ready to go into master if you're happy. Let me know if you need me to explain any of the architectural decisions I've made here.

There's no reason this couldn't go into 1.0.0, though I've tagged this as part of 1.1.0.

This addresses the following issues:

#25 - There is now a new "GenericActionHandler" that is resolved only when no bang-command is found. At present it doesn't do much, but this can be used to monitor incoming none-command messages for any server.
#11 - Pretty much complete, though I've not bothered with a message bus.
#2 - Many more unit tests. Bot.js is now much, much simpler, but there are no tests for it - I've got some minor tweaks to make to how it loads the servers on startup, at which point I'll write tests for it.

Bidthedog added 3 commits July 8, 2020 16:36
- Everything is now implemented except the new ActionHandlerResolver
- Need to refactor ActionHandlers to accept new generic ActionHandlerMessage
- Implemented new DiscordMessageResolver
- Reorganised container, though there is still more work to do; many elements can now be auto-loaded
- Added / updated numerous module-alias aliases
- Currently only supports discord, but adding a new listener now means simply creating three new files in the corresponding chatListener directory
- IoC still needs automating - this should be much simpler for most registrations with the new directory structure
- All Action Handlers have now been updated to use the latest message format
@Bidthedog Bidthedog added enhancement New feature or request action-handler Bot action handler work server-listener Server listener work labels Jul 12, 2020
@Bidthedog Bidthedog added this to the v1.1.0 Release milestone Jul 12, 2020
@Bidthedog Bidthedog requested a review from lewster32 July 12, 2020 12:20
@Bidthedog Bidthedog self-assigned this Jul 12, 2020
@Bidthedog
Copy link
Collaborator Author

Closed as I'm moving my development into a DNI repository.

@Bidthedog Bidthedog closed this Sep 13, 2020
@Bidthedog Bidthedog deleted the feature/11-multi-server-support branch September 13, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action-handler Bot action handler work enhancement New feature or request server-listener Server listener work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant